import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '../views/Login.vue'
import list from '../views/list.vue'

Vue.use(Router)
export default new Router({
  mode:"history",
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld

    },
     {
        path: '/login',
        component: Login,
        name: '登陆',
        hidden: true
    },
     {
        path: '/',
        component: Login,
        name: 'aa',
        hidden: true,
         children: [
            { path: '/aa', component: HelloWorld, name: 'aa' },
          
        ]
    },
     {
        path: '/list',
        component: list,
        name: 'aa',
        hidden: true
    }

  ]
})
